﻿using System;
using System.Collections;
using wingbot_trans_lib;

namespace wingbot_control_server
{
    class Program
    {
        WingPort port = new WingPort();
        static void Main(string[] args)
        {
            ArrayList ports = Transport.ListPorts();

            if (ports.Count > 0)
            {
                foreach (string port in ports)
                {
                   Console.WriteLine(port);
                }
            }
            else
                Console.WriteLine("no serial port found.");
        }
    }
}
